//
//  ZYCModifyPassView.m
//  ZDSC
//
//  Created by ZDTX on 2021/7/20.
//

#import "ZYCModifyPassView.h"
@interface ZYCModifyPassView ()
@property (weak, nonatomic) IBOutlet UITextField *originalTextField;
@property (weak, nonatomic) IBOutlet UITextField *freshTextField;
@property (weak, nonatomic) IBOutlet UITextField *comfirmTextField;

@end
@implementation ZYCModifyPassView

- (void)awakeFromNib{
    [super awakeFromNib];
    self.originalTextField.secureTextEntry = YES;
    self.freshTextField.secureTextEntry = YES;
    self.comfirmTextField.secureTextEntry = YES;
}


//- (instancetype)initWithCoder:(NSCoder *)coder
//{
//    self = [super initWithCoder:coder];
//    if (self) {
//        self = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
//    }
//    return self;
//}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
    }
    return self;
}

-(NSString *)oldPassword{
    return self.originalTextField.text;
}

-(NSString *)newPassword{
    return self.freshTextField.text;
}
-(NSString *)surePassword{
    return self.comfirmTextField.text;
}

@end
